package example.springmvc.sportscenter.domain;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

public class Member 
{
	//JSR-303(Java Specification Request 3030 - Bean Validation)
	@NotNull
	@Size(min=5)
	private String name;
	//lostkis xxx
	@NotNull
	@Size(min=9, max=11)
	private String phone;
	
	@Pattern(regexp=".+@.+\\.[a-z]+")
	private String email;

	//setter and getter
    //....
	//setter and getter
	//setter and getter
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	
}
